<template>
    <div class="test">
        <div class="content">
            <div class="title">
                <hr>
                <div class="title-text">
                    2024小车理论考试
                </div>
            </div>
            <div class="bottom">
                <div class="left">
                    <div class="title">
                        <a class="title-text" target="_blank" href="https://www.jiakaobaodian.com/mnks/kemu1/car.html">
                            科目一交规
                        </a>
                    </div>
                    <ul>
                        <li class="text" v-for="(item, index) in testLeftList" :key="index">
                            <img :src=item.icon alt="">
                           <div class="text-right">
                            <a target="_blank" href="https://www.jiakaobaodian.com/mnks/exercise/0-car-kemu1.html">{{item.title}}</a>
                            <p>{{item.text}}</p>
                           </div>
                        </li>
                        <li class="item-right btn-bar">
                            <a class="btn-link" target="_blank" href="https://www.jiakaobaodian.com/mnks/exam/car-kemu1.html">模拟考试</a>
                        </li>
                    </ul>
                </div>
                <div class="right">
                    <div class="title">
                        <a class="title-text" target="_blank" href="https://www.jiakaobaodian.com/mnks/kemu1/car.html">
                            科目四安全文明驾驶
                        </a>
                    </div>
                    <ul>
                        <li class="text" v-for="(item, index) in testRightList" :key="index">
                            <img :src=item.icon alt="">
                           <div class="text-right">
                            <a target="_blank" href="https://www.jiakaobaodian.com/mnks/exercise/0-car-kemu1.html">{{item.title}}</a>
                            <p>{{item.text}}</p>
                           </div>
                        </li>
                        <li class="item-right btn-bar">
                            <a class="btn-link" target="_blank" href="https://www.jiakaobaodian.com/mnks/exam/car-kemu1.html">模拟考试</a>
                        </li>                   
                    </ul>
                </div>
            </div>
            
        </div>
        
    </div>
</template>
<script>
    export default{
        
        data(){
            return{
                testLeftList: [
                    {
                        "icon": "https://nanjing.jiakaobaodian.com/core-assets/jiakao/application/home/files/7920c46acf795cfe91990d3bb8c8635c.png",
                        "title": "顺序练习",
                        "text": "按照顺序练习做题"
                    },
                    {
                        "icon": "https://nanjing.jiakaobaodian.com/core-assets/jiakao/application/home/files/29f60eac40621dffb37c38f8d584f215.png",
                        "title": "随机练习",
                        "text": "按随机顺序做题"
                    },
                    {
                        "icon": "https://nanjing.jiakaobaodian.com/core-assets/jiakao/application/home/files/cd9c3b69a1d8d0bc72b839ebdaeb5fd4.png",
                        "title": "专项练习",
                        "text": "分门别类重点突破"
                    },
                    {
                        "icon": "https://nanjing.jiakaobaodian.com/core-assets/jiakao/application/home/files/f117d8ae0fca3bffd25ff4511664e607.png",
                        "title": "难题攻克",
                        "text": "准确把握考试难点"
                    }
                    ],
                    testRightList:[
                            {
                                "icon": "https://nanjing.jiakaobaodian.com/core-assets/jiakao/application/home/files/7920c46acf795cfe91990d3bb8c8635c.png",
                                "title": "顺序练习",
                                "text": "按照顺序练习做题"
                            },
                            {
                                "icon": "https://nanjing.jiakaobaodian.com/core-assets/jiakao/application/home/files/29f60eac40621dffb37c38f8d584f215.png",
                                "title": "随机练习",
                                "text": "按随机顺序做题"
                            },
                            {
                                "icon": "https://nanjing.jiakaobaodian.com/core-assets/jiakao/application/home/files/cd9c3b69a1d8d0bc72b839ebdaeb5fd4.png",
                                "title": "专项练习",
                                "text": "分门别类重点突破"
                            },
                            {
                                "icon": "https://nanjing.jiakaobaodian.com/core-assets/jiakao/application/home/files/f117d8ae0fca3bffd25ff4511664e607.png",
                                "title": "难题攻克",
                                "text": "准确把握考试难点"
                            }
                        
                    ]
            }
        }
    }
</script>

<style lang="scss">
    .test{
        .content{
            width: 1200px;
            margin: 60px auto;
            //background-color: palegoldenrod;
            .title{
                margin-bottom: 40px;
                text-align: center;
                padding-top: 20px;
                hr{
                    height: 1px;
                    border: none;
                    border-top:1px dotted #e9e9e9
                }
                .title-text{
                    display: inline-block;
                    margin-top: -20px;
                    line-height: 41px;
                    padding: 0 45px;
                    background-color: #fff;
                    font-size: 30px;
                    
                }
            }
            .bottom{
                display: flex;
                justify-content: space-between;
                .left{
                    border: 1px solid #e9e9e9;
                        width: 580px;
                    .title{
                        width: 580px;
                        height: 110px;
                        line-height: 110px;
                        padding-top: 0;
                        border: none;
                        margin: 0;
                        .title-text{
                            display: inline-block;
                            padding: 10px 0 10px 38px;
                            background: url(../assets/test-first.png) left center no-repeat;
                            font-size: 20px
                        }
                    }
                    ul{
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: space-evenly;
                        width: 580px;
                        
                        .text{
                            display: flex;
                            width: 250px;
                            height: 70px;
                            line-height: 20px;
                            align-items: center;
                            justify-content: center;
                            margin: 0 0 5px;
                            margin-bottom: 15px;
                            padding: 15px 0 15px 0;
                            background-color: #FAFAFA;
                            img {
                                margin-right: 8px;
                                width: 25px;
                                height: 28px;
                            }
                            .text-right{
                                a{
                                    font-size: 16px;
                                    color: inherit;
                                    &:hover{
                                        color: #37B5F8;
                                    }
                                }
                                p{
                                    color: #999;;
                                }
                            }
                            
                        }
                        .btn-bar{
                            height: auto;
                            line-height: 70px;
                            .btn-link{
                                display: block;
                                width: 300px;
                                margin: 15px auto 30px;
                                border: none;
                                display: block;
                                height: 46px;
                                text-align: center;
                                line-height: 44px;
                                margin: 20px auto;
                                background: #37B5F8;
                                color: #fff;
                                border-radius: 4px;
                            
                            }
                        }
                        
                        .btn {
                            border: none;
                            display: block;
                            height: 46px;
                            width: 300px;
                            line-height: 44px;
                            margin: 20px auto;
                            background: #37B5F8;
                            color: #fff;
                            border-radius: 4px;
                            cursor: pointer;
                            margin-top: 15px;
    
                        }
                    }
                    
                }
                .right{
                    border: 1px solid #e9e9e9;
                        width: 580px;
                    .title{
                        width: 580px;
                        height: 110px;
                        line-height: 110px;
                        padding-top: 0;
                        border: none;
                        margin: 0;
                        .title-text{
                            display: inline-block;
                            padding: 10px 0 10px 38px;
                            background: url(../assets/test-four.png) left center no-repeat;
                            font-size: 20px
                        }
                    }
                    ul{
                        display: flex;
                        flex-wrap: wrap;
                        justify-content: space-evenly;
                        width: 580px;
                        
                        .text{
                            display: flex;
                            width: 250px;
                            height: 70px;
                            line-height: 20px;
                            align-items: center;
                            justify-content: center;
                            margin: 0 0 5px;
                            margin-bottom: 15px;
                            padding: 15px 0 15px 0;
                            background-color: #FAFAFA;
                            img {
                                margin-right: 8px;
                                width: 25px;
                                height: 28px;
                            }
                            .text-right{
                                a{
                                    font-size: 16px;
                                    color: inherit;
                                    &:hover{
                                        color: #37B5F8;
                                    }
                                
                                }
                                p{
                                    color: #999;;
                                }
                            }
                            
                        }
                        .btn {
                            border: none;
                            display: block;
                            height: 46px;
                            width: 300px;
                            line-height: 44px;
                            margin: 20px auto;
                            background: #37B5F8;
                            color: #fff;
                            border-radius: 4px;
                            cursor: pointer;
                            margin-top: 15px;
                            margin-bottom: 30px;
                        }
                        .btn-bar{
                            height: auto;
                            line-height: 70px;
                            .btn-link{
                                display: block;
                                width: 300px;
                                margin: 15px auto 30px;
                                border: none;
                                display: block;
                                height: 46px;
                                text-align: center;
                                line-height: 44px;
                                margin: 20px auto;
                                background: #37B5F8;
                                color: #fff;
                                border-radius: 4px;
                            
                            }
                        }
                    }
                    
                }
               
                
            }
            
        }
    }
</style>